home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMIGA PD 1
/
AMIGA-PD-1.iso
/
NetBSD
/
docs-netbsd
/
Mailinglist-Archive
/
1994-08.gz
/
1994-08
/
000026_owner-amiga@sun…s.berkeley.edu_Mon Aug 1 12:35:22 1994.msg
< prev
next >
Wrap
Text File
|
1994-10-16
|
18KB
|
536 lines
From: William J Coldwell <billc@icecube.cryogenic.com>
To: amiga@sun-lamp.cs.berkeley.edu
Subject: INSTALL doc - prerelease.
Sender: owner-amiga@sun-lamp.cs.berkeley.edu
Please proof for errors... send changes back to me in *E-MAIL*.
Feel free to add to it.
-- SOF --
Installing NetBSD-Amiga (4.4BSD UNIX)
August 1st, 1994
Abstract:
This document contains the very hastily written instructions for the
installation the NetBSD-Amiga 1.0 (4.4BSD release of UNIX) release.
NetBSD-Amiga Mailing List: majordomo@sun-lamp.cs.berkeley.edu
EMail: billc@icecube.cryogenic.com
CryoCafe BBS: 1-503-257-4823
IRC: #NetBSD and #Amiga
NetBSD-Amiga Release 1.0 will be available on a QIC-120/150 (DC6120/DC6150)
1/4" tape from this address for US$30.
NetBSD-Amiga Port
c/o William Coldwell
P.O. Box 16924
Portland, Oregon 97216-0924 USA
SYSTEM REQUIREMENTS
~~~~~~~~~~~~~~~~~~~
Supported Standard Amigas: A4000/040, A3000, A2500/030, A2500/020
Configuration Requirements:
Machine:
Amiga
CPU/FPU/MMU:
M68020-CPU/MC68881*-FPU/M68851-MMU
M68030%-CPU-MMU/MC68881*-FPU
MC68040-CPU-MMU-FPU
* - MC68882-FPU is acceptable
% - M68EC030 is not acceptable
Memory:
4 Megabytes of contigious FAST RAM or more
1 Megabytes of CHIP RAM or more
Disk:
100 Megabytes of free space or more
Tape:
Most SCSI tape controllers, including
Archive Viper,
Cipher SCSI-2 ST150.
Disk controller:
A4000 IDE
A3000 SCSI
A2500 SCSI (A2091)
A4091 SCSI-2
Supra WordSync SCSI
GVP Series II SCSI
IVS SCSI
CSA Twelve Gauge SCSI
CSA Magnum SCSI
MacroSystem Development WarpEngine SCSI-2
Supported External Filesystems:
AmigaDOS
ISO-9660 (CDROM)
Video controller:
AGA-NTSC/PAL (15/31kHz)
ECS-NTSC/PAL (15kHz)
ECS-A2024-NTSC/PAL (15kHz/10Hz)
Noahji (MacroSystem US) Retina
Network controller:
A2065 Ethernet
Hydra Ethernet
Input device:
2 button mouse
3 button mouse
Files:
~~~~~~
release/bootfloppy.dms (REQUIRES DMS unarchiver)
release/base.tar.gz (required)
release/etc.tar.gz (required)
release/netbsd.gz (required)
tools/loadbsd.gz (required)
release/comp.tar.gz (recommended)
release/games.tar.gz (recommended)
release/man.tar.gz (recommended)
release/misc.tar.gz (recommended)
release/text.tar.gz (recommended)
FTP Sites:
~~~~~~~~~~
ftp.uni-regensburg.de pub/NetBSD-Amiga/release/*
Disk space:
~~~~~~~~~~~
15M for root (/) (or more)
2 * FAST RAM Megabytes for swap (i.e., 8M system == 16M swap)
45M for /usr (add 20M for sys-src, add 35M extra for X) (or more)
Full Install:
~~~~~~~~~~~~~
If you have a system that meets the above requirements, and you want to check
out NetBSD-Amiga, you will need to create some partitions on your
harddrive(s) for it. Use the example below as a loose guide. The main thing
is that you want to create a ROOT, SWAP, and USR partition of at _least_ the
recommended sizes. You will have to take special note to watch the SCSI
UNIT, as it has relevence on the /dev/sdX number.
IMPORTANT: READ AND UNDERSTAND THIS, OR YOU WILL BE SORRY LATER
~~~~~~~~~~
Say your system has 3 SCSI devices (note: IDE drives will show up as SCSI
devices under NetBSD), IDs 0, 3, and 4. These will now show up as
sd0 (ID 0), sd1 (ID 3) and sd2 (ID 4). The higher the ID of the device is,
the higher sd will increment. Write the IDs to sd# down! If you NetBSD
partitions are on the SCSI drive at ID3, then your NetBSD system will be on
/dev/sd1 - replace any references to /dev/sd0x with /dev/sd1x in the
examples!
An Example of a clean installation on an A4000.
A4000/IDE Installation
~~~~~~~~~~~~~~~~~~~~~~
(or How Bill got NetBSD running on a an A4000/single IDE installation)
You will need your 3.0 (or above) Commodore Installation diskettes.
Backup anything important on your IDE drive, as it will be deleted.
You will have 30M available on your IDE to hold the installation files, and
your Workbench.
Partition your harddrive with HDtoolbox: Select the IDE drive, and click on
Partition drive.
*WARNING* This is a permanent thing, so please make sure that if you have
anything important, that you have backed it up on floppies or tape.
Delete all your existing partitions (usually called Workbench and Work) on
your IDE harddrive, by selecting a partition, and clicking on Delete
Partition.
You will create 4 partitions.
1st partition:
Click New Partition. Click in the next free area.
size = 30M AMIGADOS
Partition Device Name = BSDBOOT BSDNAME = /dev/sd0d
Adv. Options, Click on Change...
Click File System: until you see Fast File System
Turn ON Automount this partition, if it is not checked.
Make sure custom boot code is turned off.
Leave File system block size at 512 (if you have this option *)
Click OK.
* If you don't, you will not be able to mount the partition under NetBSD.
2nd partition:
Click New Partition. Click in the next free area.
size = 15M
Partition Device Name = BSDROOT BSDNAME = /dev/sd0a
Adv. Options, Click on Change...
Click File System: until you see Custom File System
Turn off Automount this partition, if it is checked.
Identifier: 0x4e425207
Reserved Blocks, beginning: 0 (same for end)
Make sure custom boot code is turned off.
Leave File system block size at 512 (if you have this option)
Click OK.
3rd partition:
Click New Partition. Click in the next free area.
size = (the size of your contigious FAST RAM) * 2
Partition Device Name = BSDSWAP BSDNAME = /dev/sd0b
Adv. Options, Click on Change...
Click File System: until you see Custom File System
Turn off Automount this partition, if it is checked.
Identifier: 0x4e425301
Reserved Blocks, beginning: 0 (same for end)
Make sure custom boot code is turned off.
Leave File system block size at 512 (if you have this option)
Click OK.
4th partition:
Click New Partition. Click in the next free area.
size = remaining free space on the IDE. (46 or more Megabytes)
Partition Device Name = BSDUSER BSDNAME = /dev/sd0e
Adv. Options, Click on Change...
Click File System: until you see Custom File System
Turn off Automount this partition, if it is checked.
Identifier: 0x4e425507
Reserved Blocks, beginning: 0 (same for end)
Make sure custom boot code is turned off.
Leave File system block size at 512 (if you have this option)
Click OK.
Double check everything to make sure it's correct, then click on Save Changes
to Drive. When you click Exit, your machine will not reboot. You will want
to place the Install disk of the Commodore 3.0 (or above) Operating System,
into your floppy, and install onto the BSDBOOT partition. You may need to
boot off of the Workbench disk and Format the BSDBOOT partition, before
Installing.
ONCE YOU HAVE YOUR PARTITIONS SET UP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Now, you need to get the required files on to the root directory of the
AmigaDOS partition. Use a terminal program, tape drive, or copy them from
another drive. Now you are ready to enter a new world.
BOOTING INTO NETBSD
~~~~~~~~~~~~~~~~~~~
AmigaShell> loadbsd -b netbsd
It should boot up and ask you which device you wish to boot off of.
Make sure the bootfloppy disk is in the drive, and enter:
fd0
and press return. This will cause the NetBSD kernel to boot off of the boot
floppy in DF0:.
newfs /dev/sd0a (erase it, set it up for NetBSD)
--
"newfs: ioctl(WDINFO): Invalid argument."
This warning is ok, just ignore it.
The Amiga doesn't write disk labels (and returns an error to indicate
that the attempt to write the label did not suceed). Any changes to
the disk "label" still have to be done through and RDB editor.
--
newfs /dev/sd0e (erase it, set it up for NetBSD)
mount /dev/sd0a /altroot (mount root)
mkdir /altroot/usr (make usr dir)
mount /dev/sd0e /altroot/usr (mount usr on sd0e or whatever)
mount_ados /dev/sd0d /mnt (mount ados partition)
cd /altroot (cd to newroot)
tar -zxvf /mnt/netbsd.gz (extract kernel)
tar --unlink -zxvpf /mnt/base.tar.gz (extract base)
tar --unlink -zxvpf /mnt/etc.tar.gz (extract the rest of etc)
==== Optional
|tar --unlink -zxvpf /mnt/comp.tar.gz (extract gcc and tools)
|tar --unlink -zxvpf /mnt/games.tar.gz (extract games and fun stuff)
|tar --unlink -zxvpf /mnt/man.tar.gz (extract man pages)
|tar --unlink -zxvpf /mnt/misc.tar.gz (extract miscellaneous stuff)
|tar --unlink -zxvpf /mnt/ext.tar.gz (extract text tools and docs)
=====
cd /altroot/dev (cd dev)
tar -cf - /dev | tar -xvpf - (copy device files from floppy)
/altroot/sbin/umount /altroot/usr (unmount usr)
/altroot/sbin/mount -u -r /altroot (make new root read only)
/altroot/bin/sync (sync whatever for safety)
/altroot/sbin/reboot (reboot system)
You'll end up in single-user mode, at which you can:
mount /dev/sd0a /
mount /dev/sd0e /usr
cd /etc
vi fstab (I hope you know how to use vi).
You will want to edit the fstab file to correctly represent your / and /usr
devices, as well as uncomment and edit the swap. Once you save this, you
should then be able to enter multiuser mode.
login: root
(no password)
You're in (hopefully). If all is well, then you should examine the other
NetBSD-Amiga FAQs to set your system up.
UPGRADING YOUR EXISTING NETBSD-0.9c SYSTEM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the NetBSD tar.gz files onto a spare area on your system {place}. This
also includes a tape drive, if you are going to use one. NO MORE ROOTFS.GZ.
That's right. It's history. Just make sure that you have enough space
Do NOT unarchive etc.tar.gz, unless you are prepared for system specific
files to be nailed in /etc (group, passwd, etc).
As root:
cd /
tar -zxf {place}netbsd.gz (extract kernel)
tar --unlink -xvzpf {place}base.tar.gz (extract base)
tar --unlink -zxvpf {place}comp.tar.gz (extract gcc and tools)
tar --unlink -zxvpf {place}games.tar.gz (extract games and fun stuff)
tar --unlink -zxvpf {place}man.tar.gz (extract man pages)
tar --unlink -zxvpf {place}misc.tar.gz (extract miscellaneous stuff)
tar --unlink -zxvpf {place}ext.tar.gz (extract text tools and docs)
You will have to edit your fstab to denote the ID changes (if applicable).
Use disklabel to make sure things are where you think they are.
REPORTING PROBLEMS
~~~~~~~~~~~~~~~~~~
Basically the kernel diags (things like boot messages and register
dumps after panics) are stored in the last page of memory. These
messages survive reboot so that if you have to get at them you can.
The utility of choice is dmesg. Which prints this memory out. Thus
if you get a panic with a register dump, instead of copying it down
by hand you can simply reboot and then redirect dmesg to a file.
Chris.
[send this edited information to the mailing list for help]
SOME HELPFUL HINTS THROWN IN. MOST HAVE BEEN CUT FROM THE MAILING LIST
=======================================================================
(names have been lost, but thanks to those who gave the answers to us)
A few NetBSD-Amiga WWW servers do exist. The Main one is done by Matthias
Kirschnick and includes links to other NetBSD information sites.
Matthias Kirschnick's <A
HREF="http://www.informatik.uni-erlangen.de/tree/Departments/IMMD-IV/Persons/k
irschni/NetBSD-Amiga/index.html">NetBSD-Amiga-page</A>
> Is there a NetBSD/Amiga Web server out there? If not, then I may be
Try http://dusk.rz.uni-regensburg.de/. This is a A2000 running NetBSD,
and there's also a section on NetBSD on this machine.
======================================================================
> Right - as distributed, /etc/ttys runs getty on the ite0 Amiga display,
> rather than "console" which would go to the configured console device.
Yes and this is correct. You should enable getty's on whichever devices
you want them on. The console /dev/console should always be marked as
*off* however.
======================================================================
>I see when I boot the kernel:
>warning found rdb->secpercyl(1098) != rdb->nsectors(74) * rdb->nheads(15)
>warning lp->d_sparespercyl(12) not multiple of lp->d_ntracks(15)
This is fine, this is telling you that your RDB has some conflicting values.
If the partitions mount under NetBSD, then it's safe to ignore them. If they
don't, then use dmesg to copy the values down and give us a yell on the
mailing list.
======================================================================
> TIMEZONE = 800, DST = 1 is what I
> thought it should be for me (Portland, OR, +8 GMT), but it tells me that
the
> time under netbsd is 7 hours slower than what the Amiga side says... what
am
> I missing?
The TIMEZONE and DST config options set something in the kernel data
(at least I think the TIMEZONE does, but I'm not sure about DST - I
think when I went looking, it was never referenced anywhere). The kernel
doesn't do anything at all with that data.
I think there's a something that needs to be set up in /usr/share somewhere
that deals with the timezones. I've never done it, so my NetBSD time is the
same as AmigDOS - but NetBSD considers that time value GMT, which can cause
confusion at times. Also, I don't think the stuff in /usr/share is used
until you go to multi-user, so the time would probably be reported
differently
in single user vs multi user mode.
The clock read routine just gets the current time from the Amiga clock and
uses that time as-is, with no adjustments. I had thought about adjusting
it based on the TIMEZONE, but never got around to trying it. Trying to
handle DST in the kernel isn't as easy to do.
======================================================================
From: spcmilo@hydra.spc.uchicago.edu (David Champion)
Not knowing of any such utility already existing, I came up with this
braindead rexx program to reset system time under ADOS to local so
that I can keep the battmem time in GMT for BSD's sake. (Well, I like
keeping GMT.) I call it from s:User-Startup, right after loading
rexxmast:
sys:rexxc/rx rexx:warpdate.rexx
Obviously, there's much room for improvement, but it does the job well
enough. Even without going into detail, it should probably take the
GMT offset on the command line, and my offset should probably be
negative, not positive. Oh well.
Anyway, thought someone might want it.
/* warpdate.rexx */
/* adjust current time so battclock can keep GMT */
/* CONFIGURE HERE */
/* number of minutes short of GMT */
off = 300
/* STOP CONFIGURING */
/* do not change day by default */
changeday = ''
/* find minutes after midnight */
mins = time('m')
/* adjust minutes */
mins = mins - off
/* if we go back a day, adjust minutes and changeday flag */
if mins < 0
then do
mins = 1440 + mins
changeday = 'yesterday'
end
/* if we go ahead a day, adjust minutes and changeday flag */
if mins > 1439
then do
mins = 1440 - mins
changeday = 'tomorrow'
end
/* extract new hour from minutes; set minutes to minutes since hour */
hour = trunc(mins / 60)
mins = mins - (hour * 60)
/* update seconds */
tmp = time('m')
secs = time('s')
secs = secs - (tmp * 60)
/* create an amigados 'date' command */
datestr = 'date 'changeday' 'hour':'mins':'secs
/* and change the clock */
address command datestr
======================================================================
[stolen from one of Gunther's FAQ]
Hall of Fame [outdated]
---============---
Alan Bair, abair@amcu-tx.sps.mot.com, Fontdumper, Rootfs.
Stefan G. Berg, sgberg@charon.bloomington.in.us, Writing documentation.
Dave Blaszyk, dvb@ssd.kodak.com, a driver for IVS Vector
Philippe Brand, PhB@telesys-innov.fr, X-server for custom chips,
X-server for Retina.
David Crooke, dcc@dcs.ed.ac.uk, Writing an installation-document.
William J. Coldwell, billc@icecube.cryogenic.com, Maintaining the
Mailing-List in the old days, Various programming.
Guenther Grau, s_grau@ira.uka.de, Extensively writing documents.
Niklas Hallqvist, niklas@appli.se, Porting the Mach VM system, that
NetBSD-Amiga uses, Driver for GVP, Porting ADos-FS to NetBSD-Amiga.
Rob Healey, rhealey@aggregate.com, a L0T of bug-fixes.
Andy Heffernan, ahh@netcom.com, Porting GDB, compiling X11R5.
Michael L. Hitch, osymh@montana.edu, Support for the 68040, Drivers
for various SCSI-devices, changing loadbsd, fixing bugs, 5380-Driver,
AGA-modes for the console and X, A4000 IDE driver, a L0T of bug-fixes,
Implementing a floppy-driver, IVS-Vector-driver etc.
Chris Hopps, chopps@emunix.emich.edu, Support for the custom chips,
Reintegrating the changes back to the NetBSD-current source tree,
fixing bugs and (re-)designing some of the code. Main coordinator
of the source. ADos-Filesystem.
Eduardo E. Horvath, eeh@btr.com, X11R5-Mono-Server.
Markus Illenseer, markus@TechFak.Uni-Bielefeld.de, Writing
documentation, Porting X-clients.
0liver Lahaye, lahaye_o@epita.fr, X-server for custom chips,
X-server for Retina.
Brad Pepers, pepersb@cuug.ab.ca, Implementing a floppy-driver.
0liver Raoul, raoul_o@epita.fr, X-server for custom chips,
X-server for Retina.
Stephen J. Roznowski, sjr@zombie.ncsc.mil, Building binaries
from sun-lamp sources.
Ty Sarna, tsarna@endicor.com, Various programming, Installation.
Roy Trevino, rtrevino@sedona.intel.com, X11R5-Mono-Server.
Lutz Vieweg, lkv@mania.RoBIN.de, providing information and writing
a tty-device-driver for the Retina Z3
Markus Wild, mw@eunet.ch, Initially started the port of NetBSD-current
to the Amiga, still working on various projects.
[Others include Ken Dyke for 040 MMU code, and probably a couple of others
who didn't send me e-mail in time for this document. Also, we give thanks to
the NetBSD core team members, for which there wouldn't be a port at all.]
-- EOF --
--
William J. Coldwell - billc@iceCuBE.cryogenic.com - Cryogenic Software